
if not exists (select 1 from mandant where mandid = 'li')
begin
   insert into mandant (mandid, beschreibung) values ('li', 'Linde', 'Alters und Pflegeheim Linde')
   
   insert into userrights (username,loginname,password,beschreibung,userrights,mandid)
                   values ('linde','linde',convert(varbinary(256), pwdencrypt('prs')),'Hauptuser linde',1,'li')
end

